{% extends 'news/base.html' %}

{% block centent %}
    首页-新经资讯
{% endblock %}

{% block script %}
    <script type="text/javascript" src="../../static/news/js/index.js"></script>
{% endblock %}

{% block category_menu %}
            <ul class="menu fl">
                {% for categorie in context.categories %}
                    {% if loop.index == 1 %}
                        <li class="active" data-cid="{{ categorie.id }}"><a href="javascript:;">{{ categorie.name }}</a></li>
                    {% else %}
                        <li class="" data-cid="{{ categorie.id }}"><a href="javascript:;">{{ categorie.name }}</a></li>
                    {% endif %}

                {% endfor %}
            </ul>
{% endblock %}

{% block content %}
        <div class="conter_con">
            <ul class="list_con fl">
                {# 主页的列表新闻是由ajax渲染 #}
            </ul>
        <div class="rank_con fr">
        <div class="rank_title">
            <h3>点击排行</h3>
        </div>
            <ul class="rank_list">
                {% for news in context.click_news_list %}
                    <li><span class="{{ loop.index | indexClass }}">{{ loop.index }}</span><a href="/news/detail/{{ news.id }}">{{ news.title }}</a></li>
                {% endfor %}
            </ul>
        </div>
        </div>
{% endblock %}




